vulkan: Only render minimal region
authorBenjamin Otte <otte@redhat.com>
Mon, 26 Dec 2016 23:18:52 +0000 (00:18 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 26 Dec 2016 23:31:33 +0000 (00:31 +0100)
commita5f8a74ec1d7390c81f4cbae9b84ca942b879233
tree0a8af3bea107ab4637901847f32fc51f47b99abe
parent293248c1d3c974d472b1a79da7aa2c937a86dca7
vulkan: Only render minimal region

It's faster to render once for every rectangle in the clip region than
rendering the outline of the clip region.
Especially because this reduces the time necessary to build up the frame
data.

In widget-factory (where we have 3 rectangles), this leads to a 5x
speedup in the rendering time rendering alone.
Snapshotting time goes from 10ms to ~1ms, which is another huge
improvement.
gsk/gskvulkanrender.c
gsk/gskvulkanrenderer.c